#include <QPointF>
#include <QSize>
#include <QColor>
#include <QVector>

#ifndef GRAPHICINFO_H
#define GRAPHICINFO_H

#define gline 2
#define polygon3 3
#define polygon4 4
#define polygon5 5
#define polygon6 6
#define ellipse 0
#define bezierL -1
#define bspL -2

#define OP_TRANS 0xa
#define OP_ROTATE 0xb
#define OP_SCALE 0xc
#define OP_FILL 0xd
#define OP_CLIP 0xf

struct GraphicInfo
{
    int B_part;
    QPoint points[10]; //存储多边形的顶点坐标
    QVector<QPointF> ctrlPoint; //存储曲线的控制点
    QRgb color; //存储图形颜色
    QSize Esize; //存储图形的大小

    GraphicInfo(){}
};

#endif // GRAPHICINFO_H
